package com.ruoyi.review.domain;

import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论管理对象 comment
 * 
 * @author ruoyi
 * @date 2025-05-18
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 修改者 */
    @Excel(name = "修改者")
    private String updateUser;

    /** 评论照片 */
    @Excel(name = "评论照片")
    private String img;

    /** 业务类型id:1房间2商品3歌曲 */
    @Excel(name = "业务类型:1房间2商品3歌曲")
    private Long commentTypeId;


    /** 业务id */
    @Excel(name = "业务id")
    private Long businessId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 评分 */
    @Excel(name = "评分")
    private Long rating;


    /** 关联的评论类型对象 */
    private CommentType commentType;

    /** 关联的用户对象 */
    private SysUser sysUser;

    // Getter和Setter
    public CommentType getCommentType() {
        return commentType;
    }

    public void setCommentType(CommentType commentType) {
        this.commentType = commentType;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }

    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public void setCommentTypeId(Long commentTypeId) 
    {
        this.commentTypeId = commentTypeId;
    }

    public Long getCommentTypeId() 
    {
        return commentTypeId;
    }

    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }

    public void setRating(Long rating)
    {
        this.rating = rating;
    }
    public Long getRating()
    {
        return rating;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .append("img", getImg())
            .append("commentTypeId", getCommentTypeId())
            .append("businessId", getBusinessId())
            .append("userId", getUserId())
            .append("rating",getRating())
            .append("sysName",getSysUser())
            .append("commentType",getCommentType())
            .toString();
    }
}
